<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.service.study.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
	request.setCharacterEncoding("UTF-8");
	String itemId = request.getParameter("itemId");
    if(itemId == null) itemId = "";
    
    StudyArmyItem item = StudyArmyService.loadStudyArmyInfo(request, response, out);
    int commanderId = -1;
    String commanderName = "";
    int deptId = -1;
    String deptName = "";
    String content = "";
    String description = "";
    String detail = "";
    String participants = "";
    String place = "";
    String timestamp = "";
    String subjects = "";
    String executeTimestamp = "";
    String problem = "";
    if(item != null) {
    	StudyArmy bean = item.getBean();
    	Person person = item.getCommander();
    	commanderId = person.getPersonId();
    	commanderName = person.getName();
    	Department dept = item.getDept();
    	deptId = dept.getDeptId();
    	deptName = dept.getPath();
    	executeTimestamp = bean.getExcuteTimestamp();
    	problem = bean.getProblem();
    	subjects = bean.getSubjects();
    	detail = bean.getDetail();
    	participants = bean.getParticipants();
    	place = bean.getPlace();
    	timestamp = bean.getTimestamp();
    } 
%>
<html>
<head>
	<title>日常训练</title>
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>日常训练</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="15%">
					<col width="35%">
					<col width="12%">
					<col width="38%">
					<tr>
						<td class="field">
							小队
						</td>
						<td>
							<%=deptName %>
						</td>
						<td class="field">
							日期
						</td>
						<td>
							<%=timestamp %>
						</td>
					</tr>
					<tr>
						<td class="field">
							训练时间
						</td>
						<td>
							<%=executeTimestamp%>
						</td>
						<td class="field">
							训练地点
						</td>
						<td>
							<%=place %>
						</td>
					</tr>
					<tr>
						<td class="field">
							训练项目
						</td>
						<td>
							<%=subjects%>
						</td>
						<td class="field">
							指挥员
						</td>
						<td>
							<%=commanderName %>
						</td>
					</tr>
				</table>
				<table class="dataTable2">
					<col width="15%">
					<col width="85%">
					<tr style="height: 100px">
						<td class="field">
							参加训练人数及人员
						</td>
						<td>
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=participants %></textarea>
						</td>
					</tr>
					<tr style="height: 100px">
						<td  class="field">
							完成情况
						</td>
						<td>
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=detail %></textarea>
						</td>
					</tr>
					<tr style="height: 80px">
						<td class="field">
							存在的问题及整改措施
						</td>
						<td valign="top">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=problem %></textarea>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="tableBtn">
				<span onclick="window.print();">打印</span>			
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td>
				&nbsp;
			</td>
		</tr>
	</table>
</body>
</html>